\section{floor --- Floor Value}
\label{fn:floor}
\index{floor()}
\index{floor value}
\index{round down}
\begin{rail}
Floor : 'floor' '(' ( Scalar | Matrix ) ')' ;
\end{rail}

\verb+floor+ returns the largest integer not greater than the
argument. If the argument is a matrix then the \verb+floor+ operation
is performed on an element-by-element basis.  If the argument is
complex, the operation is performed on real and imaginary parts
separately.

\paragraph{Example}
\index{example of floor()}
\index{floor()!example}
\begin{verbatim}
> floor(1.00001)
        1
> floor(1.999999)
        1
> floor(-1)
       -1
> floor(-1.73)
       -2
> a = 100*rand(2,5)
 a =
     65.5         91       29.9         70       9.18  
     12.9       11.2       26.5         95       90.2  
> floor(a)
       65         91         29         69          9  
       12         11         26         95         90
> b = 100*rand(2,5)
 b =
       96       44.1       92.4       90.8       14.8  
     91.5       7.35       8.82       36.2       87.9  
> floor(a+b*(0+1j))
 matrix columns 1 thru 3
                65 + 95i                91 + 44i                29 + 92i
                12 + 91i                 11 + 7i                 26 + 8i

 matrix columns 4 thru 5
                69 + 90i                 9 + 14i
                95 + 36i                90 + 87i
\end{verbatim}

See also: Page~\pageref{fn:ceil} \verb+ceil()+,
Page~\pageref{fn:int} \verb+int()+.

\newpage






